#pragma once
#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include "DriverStrInfo.h"

#define DEV_IMG "/dev/wmarklookback_img"
#define DEV_STR "/dev/wmarklookback_str"
#define STR_ERROR "ERROR_NULL"
#define STR_SIZE 256

using namespace std;

namespace android {
class Driver  {
public:
    Driver(string dev);
    ~Driver(){}
    DriverStrInfo getStrInfo();

private:
    int initDev();
    int openDev();

private:
    string mDev;
    int mFd = -1;
    char mStrBuf[STR_SIZE];
    char mSubBuf[STR_SIZE];
};

} //namespace